package designPattern.action11.Visitor.c24t2.concrete.student;

import designPattern.action11.Visitor.c24t2.sketch.Student;
import designPattern.action11.Visitor.c24t2.sketch.Visitor;


//大学生
public class Undergraduate extends Student {
    double math, english;    //成绩
    String name;

    public Undergraduate(String name, double math, double english) {
        this.name = name;
        this.math = math;
        this.english = english;
    }

    public double getMath() {
        return math;
    }

    public double getEnglish() {
        return english;
    }

    public String getName() {
        return name;
    }

    public void accept(Visitor v) {
        v.visit(this);
    }
}